package com.fs.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "添加商品到购物车的数据传输对象")
public class CartAddDTO implements Serializable {

    @ApiModelProperty("商品ID")
    private Long productId;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品封面图")
    private String productImage;

    @ApiModelProperty("商品单价")
    private Double price;

    @ApiModelProperty("购买数量")
    private Integer quantity;
}
